Skip to content

Conversation

@mendozagit
Copy link
Contributor

Resumen
Agrega soporte completo para crear facturas de nómina (CFDI 4.0 con complemento de nómina 1.2).

Cambios principales

Nuevos servicios:

  • EmployeeService - Gestión de datos de empleados
  • EmployerService - Gestión de datos de patrones/empleadores
  • StampService - Consulta de saldo de timbres

Modelos de nómina:

  • Modelos completos para percepciones, deducciones, incapacidades, horas extra, etc.
  • Soporte para todos los catálogos SAT de nómina

Ejemplos:

  • Factura de nómina por valores (datos completos en request)
  • Factura de nómina por referencias (usando IDs de entidades pre-configuradas)
  • Ejemplos de consulta de empleados/empleadores y timbres

Mejoras técnicas:

  • Estandarización de nombres de módulos (kebab-case)
  • Mejoras en soporte dual ESM/CommonJS
  • Fix de vulnerabilidades de seguridad en dependencias

JesusMendoza added 12 commits January 26, 2026 19:48
  - Renamed download-catalog.inteface.ts → download-catalog.interface.ts
  - Renamed download-rule.service.inteface.ts → download-rule.service.interface.ts
  - Updated all imports in 5 files to use the correct filenames

  2. Fixed Code Style Inconsistencies in InvoiceService

  - Standardized object property spacing (path:endpoint → path: endpoint)
  - Fixed inconsistent indentation in getStatus() and create() methods

  3. Fixed Method Naming Inconsistency in DownloadRequestService

  - Removed Async suffix from methods to match the pattern used in other services:
    - getXmlsAsync → getXmls
    - getMetadataItemsAsync → getMetadataItems
    - downloadPackageAsync → downloadPackage
    - downloadSatRequestAsync → downloadSatRequest
    - downloadSatResponseAsync → downloadSatResponse
    - searchAsync → searchByDate

  4. Removed Dead Code

  - Deleted sdk-constants.ts which was unused and duplicated values from date-utils.ts

  5. Fixed Security Issue

  - Fixed rejectUnauthorized: false in HTTP client factory to be conditional based on settings.debug

  6. Fixed Minor Code Style Issues

  - Fixed var → const in download-rule.service.ts
  - Fixed inconsistent JSDoc comment indentation
  - Cleaned up extra blank lines and trailing whitespace
  - Fixed function indentation in date-utils.ts
- Add form-data ^4.0.4 to fix CVE-2025-7783 (predictable boundary)
- Upgrade axios to 1.13.4 to fix DoS vulnerability
- Upgrade glob, brace-expansion, diff to fix ReDOS vulnerabilities
@mendozagit mendozagit requested a review from Anidem1995 January 27, 2026 21:20
@mendozagit mendozagit self-assigned this Jan 27, 2026
// ============================================================================
// 4. NOMINA CON HORAS EXTRA (Facturación por valores)
// ============================================================================
async function nominaConHorasExtraByValues(client: FiscalapiClient): Promise<void> {
// ============================================================================
// 5. NOMINA CON INCAPACIDADES (Facturación por valores)
// ============================================================================
async function nominaConIncapacidadesByValues(client: FiscalapiClient): Promise<void> {
// ============================================================================
// 6. NOMINA CON SNCF (Facturación por valores)
// ============================================================================
async function nominaConSNCFByValues(client: FiscalapiClient): Promise<void> {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants